#pragma once

#include<iostream>
#include<string>
using namespace std;

class date
{
public:
	date(int year1 = 1, int month1 = 1, int day1 = 1);
	void print();
	int getmonthday(int year, int month);
	date& operator=(const date& d)
	{
		if (this != &d)
		{
			year = d.year;
			month = d.month;
			day = d.day;
		}
	}
private:
	int year;
	int month;
	int day;
};
